package chapter10.section5;
//程序10-7： 账户信息类，文件名Account.java

public class Account {
    private String id; // 用户唯一的id
    private String name;// 用户名称
    private int balance;// 当前余额

    public Account(String id, String name, int balance) {
        super();
        this.id = id;
        this.name = name;
        this.balance = balance;
    }


    public String getId() {
        return id;
    }


    public void setId(String id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


    public int getBalance() {
        return balance;
    }


    public void setBalance(int balance) {
        this.balance = balance;
    }


    // 这里省略了每个属性的getter和setter方法，请创建时自行添加。
    @Override
    public String toString() {
        return "Account[name:" + name + ",balance:" + balance + "]";
    }
}
